<?php use_helper('JavascriptBase') ?>

<table border="0" cellpadding="0" cellspacing="0">
  <?php foreach ($list_categoria as $row1): ?>
    <tr>
        <td>
        <a href="javascript:void(0);"  onclick="f_show_div_menu_category(<?php echo $row1->getId() ?>);">
          <?php echo image_tag('../images/flechaabajo.png','border=0') ?>
        </a>
        <span>
            <input id="<?php echo 'txt_grupo'.$row1->getId() ?>" size="20" type="text" style="border:none;" onkeypress="f_pre_save_category(event,<?php echo $row1->getId() ?>);" value="<?php echo $row1->getNombreCategoria() ?>" readonly="readonly"/>
        </span>
        <div id="<?php echo 'div_menu_'.$row1->getId() ?>" style="display:none;position:absolute;background:#eeeeee;">
            <table width="100px">
              <tr>
                  <td align="right">
                      <a href="javascript:void(0);" onclick="f_hide_div_menu_category(<?php echo $row1->getId() ?>);">
                          <?php echo image_tag('../images/x.gif','border=0') ?>
                      </a>
                  </td>
              </tr>
              <tr><td><a href="javascript:void(0);" onclick="f_pre_edit_category(<?php echo $row1->getId() ?>);">Editar</a></td></tr>
              <tr><td><a href="javascript:void(0);" onclick="f_pre_delete_category(<?php echo $row1->getId() ?>);">Eliminar</a></td></tr>
            </table>
        </div>

        </td>
    </tr>
  <?php endforeach; ?>
</table>